package com.it.park.rms.job;

import java.util.Date;

import com.dangdang.ddframe.job.api.ShardingContext;
import com.dangdang.ddframe.job.api.simple.SimpleJob;

public class TestJob implements SimpleJob{

	@Override
	public void execute(ShardingContext arg0) {
		 System.out.println(new Date()+" job名称 = "+arg0.getJobName()
         +"\n分片数量-->"+arg0.getShardingTotalCount()
         +"\n当前分区-->"+arg0.getShardingItem()
         +"\n当前分区参数值-->"+arg0.getShardingParameter()
         +"\n当前自定义参数-->"+arg0.getJobParameter()+"============start=================");

	}

}
